package com.ruoyi.marketing.domain;

import java.math.BigDecimal;

import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import org.checkerframework.checker.guieffect.qual.SafeEffect;

/**
 * 营销奖励对象 marketing_prize
 *
 * @author zy
 * @date 2023-01-31
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("marketing_prize")
public class MarketingPrize extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 奖品名称 */
    @Excel(name = "奖品名称")
    @TableField("name")
    private String name;

    /** 关联库存id */
    @Excel(name = "关联库存id")
    @TableField("g_id")
    private Long gId;

    /** 获奖可能性 */
    @Excel(name = "获奖可能性")
    @TableField("probability")
    private Double probability;

    /** 图片url */
    @Excel(name = "图片url")
    @TableField("img_url")
    private String imgUrl;

    /** 营销奖励 */
    @Excel(name = "营销奖励")
    @TableField("m_id")
    private Long mId;

    /** 营销奖励金额 */
    @Excel(name = "营销奖励金额")
    @TableField("money")
    private BigDecimal money;

    /**
     * 奖励类型
     */
    private Integer type;
}
